//
//  THJTradeDetailCell.m
//  THJXHW
//
//  Created by 河南德艺 on 2018/8/10.
//  Copyright © 2018年 河南德艺. All rights reserved.
//

#import "THJTradeDetailCell.h"

@implementation THJTradeDetailCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setContent:(NSDictionary*)dic{
    
    
    
    //交易金额
    self.label1.text = [RSA decryptString:dic[@"TRANAMT"] publicKey:RSA_PubKey];
    //对方账户
    self.label2.text = [RSA decryptString:dic[@"shouId"] publicKey:RSA_PubKey];
    //对方账户名
    self.label3.text = [RSA decryptString:dic[@"shouName"] publicKey:RSA_PubKey];
    //余额
    self.label4.text = [RSA decryptString:dic[@"ACCBAL"] publicKey:RSA_PubKey];
    //交易账户
    self.label5.text = [RSA decryptString:dic[@"fuId"] publicKey:RSA_PubKey];
    //交易账户名
    self.label6.text = [RSA decryptString:dic[@"fuName"] publicKey:RSA_PubKey];
    //借款标识
    self.label7.text = [RSA decryptString:dic[@"CDFG"] publicKey:RSA_PubKey];
    //交易时间
    NSString * date = [RSA decryptString:dic[@"TRANDATE"] publicKey:RSA_PubKey];
    NSString * time = [RSA decryptString:dic[@"TRANTIME"] publicKey:RSA_PubKey];
    self.label8.text = [NSString stringWithFormat:@"%@ %@",date,time];
}
@end
